﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Hero
    {
        private string heroName;
        private string heroInfo;
        private string nickName;
        private int attack;
        private int defense;
        private int speed;
        
        public Hero(string heroName, string heroInfo, string nickName,int attack, int defense, int speed)
        {
            this.heroName = heroName;
            this.heroInfo = heroInfo;
            this.nickName = nickName;
            this.attack = attack;
            this.defense = defense;
            this.speed = speed;
            
        }
        public void hll()
        {
            Console.WriteLine("我是英雄{0},{1},我的昵称是{2},攻击力{3}，防御力{4}，速度{5}",
                this.heroName, this.heroInfo, this.nickName, this.attack, this.defense, this.speed);
        }
        public string HeroName
        {
            get { return this.heroName; }
            set { this.heroName = value; }
        }
        public string HeroInfo
        {
            get { return this.heroInfo; }
            set { this.heroInfo = value; }
        }
        public string NickName
        {
            get { return this.nickName; }
            set { this.nickName = value; }
        }
        public int Attack
        {
            get { return this.attack; }
            set { this.attack = value; }
        }
        public int Defense
        {
            get { return this.defense; }
            set { this.defense = value; }
        }
        public int Speed
        {
            get { return this.speed; }
            set { this.speed = value; }
        }

    }
    
}
